<div id="addProductSeckillModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <vc:i18n name="添加秒杀" namespace="addProductSeckill"></vc:i18n>
                </h3>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name='选择商品' namespace='addProductSeckillInfo'></vc:i18n>
                        </label>
                        <div class="col-sm-3">
                            <select class="custom-select" v-model="addProductSeckillInfo.categoryId"
                                @change="_changeAddProductCatalorys()">
                                <option selected disabled value="">{{vc.i18n('请选择分组','addProductGroup')}}
                                </option>
                                <option :value="item.categoryId"
                                    v-for="(item,index) in  addProductSeckillInfo.productCategorys">
                                    {{item.categoryName}}</option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <select class="custom-select" v-model="addProductSeckillInfo.productId"
                                @change="_changeAddProduct()">
                                <option selected disabled value="">{{vc.i18n('请选择商品','addProductGroup')}}
                                </option>
                                <option :value="item.productId" v-for="(item,index) in  addProductSeckillInfo.products">
                                    {{item.prodName}}</option>

                            </select>
                        </div>
                        <div class="col-sm-3">
                            <select class="custom-select" v-model="addProductSeckillInfo.valueId">
                                <option selected disabled value="">{{vc.i18n('请选择规格','addProductGroup')}}
                                </option>
                                <option :value="value.valueId" v-for="(value,index) in  addProductSeckillInfo.values">
                                    {{ value.specName}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='秒杀简介' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-10">
                            <textarea v-model="addProductSeckillInfo.prodDesc"
                                :placeholder="vc.i18n('必填，请填写秒杀产品简介','addProductSeckill')"
                                class="form-control"></textarea>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='秒杀小时' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="addProductSeckillInfo.killHours">
                                <option selected disabled value="">{{vc.i18n('必填，请选择秒杀小时','addProductSeckill')}}
                                </option>
                                <option :value="hours" v-for="hours in addProductSeckillInfo.selectsHours">{{hours}}点</option>
                            </select>
                        </div>
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='持续小时' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.continueHours" type="text"
                                :placeholder="vc.i18n('必填，请填写持续小时','addProductSeckill')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='有效期内购买' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.totalCount" type="number"
                                :placeholder="vc.i18n('必填，请填写有效期内购买次数','addProductSeckill')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='一次购买数量' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.oneCount" type="number"
                                :placeholder="vc.i18n('必填，请填写一次购买数量','addProductSeckill')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='秒杀金额' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.killPrice" type="text"
                                :placeholder="vc.i18n('必填，请填写秒杀金额','addProductSeckill')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='限量' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.killStock" type="text"
                                :placeholder="vc.i18n('必填，请填写限量','addProductSeckill')" class="form-control">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='开始时间' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.startTime" type="text"
                                :placeholder="vc.i18n('必填，请填写开始时间','addProductSeckill')"
                                class="form-control addProductSeckillStartTime">
                        </div>
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='结束时间' namespace=' addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <input v-model="addProductSeckillInfo.endTime" type="text"
                                :placeholder="vc.i18n('必填，请填写结束时间','addProductSeckill')"
                                class="form-control addProductSeckillEndTime">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right"><span>
                                <vc:i18n name='状态' namespace='addProductSeckill'></vc:i18n>
                            </span></label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="addProductSeckillInfo.state">
                                <option selected disabled value="">{{vc.i18n('必填，请选择状态','addProductSeckill')}}
                                </option>
                                <option value="1001">{{vc.i18n('开启','addProductSeckill')}}</option>
                                <option value="2002">{{vc.i18n('关闭','addProductSeckill')}}</option>
                            </select>
                        </div>
                    </div>

                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button"
                            v-on:click="saveProductSeckillInfo()"><i class="fa fa-check"></i>&nbsp;
                            <span>
                                <vc:i18n name="保存"></vc:i18n>
                            </span>
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                            data-dismiss="modal">
                            <span>
                                <vc:i18n name="取消"></vc:i18n>
                            </span>
                        </button>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>